#include('header.html')
#--<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
<script type="text/javascript" src="/static/style/admin/js/table.js"></script>--#
<script type="text/javascript">
	changeTab('仪表盘');
	$(function () {
        switchEvent("#can_reg", function() {
            $.post('/user/can_reg/1');
        }, function() {
            $.post('/user/can_reg/0');
        });

        // 绘制图表
        // createShopTable('wy', 'st');
    });
</script>
<div class="work-xcontent">
	<div>
		<div class="col-lg-12 col-xs-12">
			<h4><span class="fa fa-hand-o-right"></span> 仪表盘</h4>
		</div>
        <div class="col-lg-12 col-xs-12">
            <div class="card-box">
                #if(bestWy || !bestSt)
                <div class="col-lg-3 col-sm-5 col-xs-6">
                    <div class="box-min thumbnail">
                        <div>
                            <div class="pull-left">
                                <img width="60" src="/static/images/best2.png">
                            </div>
                            <div>
                                <h4>${bestWy.name ?! '无'}</h4>
                                <p>&nbsp;</p>
                                <p><span class="label label-info">${bestWy.total.format('0.00') ?! '0'}</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                #end
                #if(bestSt)
                <div class="col-lg-3 col-sm-5 col-xs-6">
                    <div class="box-min thumbnail">
                        <div>
                            <div class="pull-left">
                                <img width="60" src="/static/images/best2.png">
                            </div>
                            <div>
                                <h4>${bestSt.name ?! '无'}</h4>
                                <p>&nbsp;</p>
                                <p><span class="label label-info">${bestSt.total.format('0.00') ?! '0'}</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                #end
                <div class="col-lg-3 col-sm-5 col-xs-6">
                    <div class="box-min thumbnail">
                        <div>
                            <div class="pull-left">
                                <span class="fa fa-users"></span>
                            </div>
                            <div>
                                <h4>用户总数</h4>
                                <p>&nbsp;</p>
                                <p><span class="label label-warning">${userNum ?! '0'}</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-sm-5 col-xs-6">
                    <div class="box-min thumbnail">
                        <div>
                            <div class="pull-left">
                                <span class="fa fa-plus-square"></span>
                            </div>
                            <div>
                                <h4>用户注册开关</h4>
                                <p style="padding-top: 15px; margin-bottom: -10px">
                                    <span id="can_reg" class="switch-${CanReg?'on':'off'}"></span>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--<div class="chart col-lg-12 col-xs-12">
            <div id="wy" class="col-lg-6 col-md-12"></div>
            <div id="st" class="col-lg-6 col-md-12"></div>
        </div>-->
    </div>
</div>
#include('footer.html')
